﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Elmah;

namespace Coslen.TahorCRM.UI.www.Controllers
{
    public class ErrorController : Controller
    {
        // Orginal Source: http://www.devcurry.com/2012/05/error-handling-elmah-in-aspnet-mvc.html
        //               : http://www.devcurry.com/2012/06/aspnet-mvc-handling-exceptions-and-404.html

        // The 404 action handler
        // Get: /FailWhale/
        public ActionResult FailWhale()
        {
            Response.StatusCode = 404;
            Response.TrySkipIisCustomErrors = true;
            return View();
        }
    }
}
